#include "thread_pool.hpp"
#include "Task.hpp"

using namespace ThreadPoolModule;

int main()
{
    Enable_Console_Log_Strategy();

    //ThreadPool<task_t>* tp=new ThreadPool<task_t>();

    //ThreadPool<task_t>::GetInstance();

    int cnt=10;
    while(cnt--)
    {
        ThreadPool<task_t>::GetInstance()->Enqueue(DownLoad);
        sleep(1);
    }

    ThreadPool<task_t>::GetInstance()->Stop();
    ThreadPool<task_t>::GetInstance()->Join();

    return 0;
}